package com.ketai.appinfo.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ketai.appinfo.mapper.DevUserMapper;
import com.ketai.appinfo.pojo.DevUser;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;

import javax.annotation.Resource;
import java.sql.SQLException;
import java.sql.Wrapper;

/**
*@Author 刘玉琼
*@Time 2020-11-03
*
*/
@Service
@Transactional
public class DevUserServiceImpl extends ServiceImpl<DevUserMapper,DevUser> implements DevUserService{

    @Resource
    private DevUserMapper devUserMapper;

    /**
     * 登录
     * @param devcode
     * @return
     *//*
    @Override
    @Transactional(readOnly = true)
    public DevUser devUserLogin(String devcode,String password) {
        if(StringUtils.isEmpty(devcode)){
            return null;
        }

        DevUser user=devUserMapper.selectOne(queryWrapper);
        if(user==null){
            return  null;
        }
        if(!password.equals(user.getDevpassword())){
            return  null;
        }
        return user;
    }*/
}
